KmpWorkerDatabaseFactory

iOS-specific factory for creating the SQLDelight KmpWorkerDatabase.

Usage:

val database = KmpWorkerDatabaseFactory.create()
val repository = SqlDelightTaskRepository(database)

Functions

Link copied to clipboard
fun create(name: String = "kmpworker.db"): KmpWorkerDatabase

Creates a production SQLite-backed KmpWorkerDatabase.

Link copied to clipboard
fun createInMemory(): KmpWorkerDatabase

Creates an in-memory KmpWorkerDatabase for testing.